import axios from '../util/http'
//获取全部
export function getOrder(data) {
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/get-list`,
		data
	})
}
//获取未预约 已预约
export function getAppointment(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/get-appointment`,
		data: query
	})
}
//获取详情
export function getDetails(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/details`,
		data: query
	})
}
//预约
export function addAppoint(data) {
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/begin-appointment`,
		data
	})
}
//新增异常
export function addAbnormal(data) {
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/addAbnormal`,
		data
	})
}

//获取全部三包订单
export function getAll(data) {
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/get-all`,
		data
	})
}

//获取送货 派车订单
export function getAllOrder(data) {
	return axios({
		method:'post',
		url:`/wechat/driver/get-all`,
		data
	})
}
